﻿<cfsilent>
	<cfscript>
		
		termId = event.getArg("TermID");
		academicYear = event.getArg("AcademicYear");
		academicTerm = event.getArg("AcademicTerm");
		
		taskId = event.getArg("TSK");
		taskType = event.getArg("TT");
		
		passArgs = structNew();
		structInsert( passArgs, "TSK", taskId );
		structInsert( passArgs, "TT", taskType );
		structInsert( passArgs, "TID", termId );
		
		switch(taskType){
			case "C":
				sql = "SELECT 
							t_course.course_name, 
							t_teacher.tch_name 
						FROM 
							t_common_task a 
							INNER JOIN t_course ON t_course.cid = a.cid 
							INNER JOIN t_teacher ON t_teacher.tch_id = a.tch_id 
						WHERE 
							a.tsk_id = :taskId ";
				break;

			case "P":
				sql = "SELECT 
							t_course.course_name, 
							t_teacher.tch_name 
						FROM 
							t_task a 
							INNER JOIN t_course ON t_course.cid = a.cid 
							INNER JOIN t_teacher ON t_teacher.tch_id = a.tch_id 
						WHERE 
							a.tsk_id = :taskId ";
				break;
			
			case "R":
				sql = "SELECT 
							t_course.course_name, 
							t_teacher.tch_name 
						FROM 
							t_reopen_task a 
							INNER JOIN t_course ON t_course.cid = a.cid 
							INNER JOIN t_teacher ON t_teacher.tch_id = a.tch_id 
						WHERE 
							a.tsk_id = :taskId ";
				break;
			
			case "T":
				sql = "SELECT 
							t_course.course_name, 
							t_teacher.tch_name 
						FROM 
							t_sport_task a 
							INNER JOIN t_course ON t_course.cid = a.cid 
							INNER JOIN t_teacher ON t_teacher.tch_id = a.tch_id 
						WHERE 
							a.tsk_id = :taskId ";
				break;
		}
		
		queryObj = new query( datasource=application.dnsSlave );
		queryObj.addParam( name="taskId", value=taskId, cfsqltype="cf_sql_varchar" );
		rs_task = queryObj.execute( sql=sql ).getResult();	
		
		event.setArg("pageTitle", "教学任务安排 - 临时性调停课 - " & rs_task.course_name );
		
	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('taskTempChange')#</cfoutput>"><i class="mrs img btnList"></i><span class="uiButtonText">临时性调停课</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 card"></i><cfoutput>#rs_task.course_name#</cfoutput>-<cfoutput>#rs_task.tch_name#</cfoutput>
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">
			
				<div class="noticeBlock">
					<h3>选择教学任务更改类别</h3>
					<p><span class="img icon16x16 message"></span>针对已安排的教学任务，如果需要临时进行教学安排变更，可以在这里根据变更内容进行相应操作.</p>
					<hr/>
				</div>
				
				<div class="clearfix">
					<ul class="UINavBoard">
						<li class="col3 first">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('taskChangeWizardStop', passArgs)#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 taskChangeWizardStop"></span>
									</div>
									<div class="content">
										<h5>临时停课</h5>
										<p>教师因事需临时进行停课, 同时向学生发布停课通知</p>
									</div>
								</a>
							</div>
						</li>
						<li class="col3">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('taskChangeWizardAppend', passArgs)#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 taskChangeWizardAppend"></span>
									</div>
									<div class="content">
										<h5>补课</h5>
										<p>停课后安排时间、地点单独补课, 并通知学生</p>
									</div>
								</a>
							</div>
						</li>
						<li class="col3 last">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('taskChangeWizardPlace', passArgs)#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 taskChangeWizardPlace"></span>
									</div>
									<div class="content">
										<h5>临时更换上课教室</h5>
										<p>临时针对某个上课时间更换教学场地</p>
									</div>
								</a>
							</div>
						</li>
					</ul>
			
				</div>
				
				
			</div>
		</li>
	</ul>
</div>




